<script type="text/javascript">
	function uploadPicture() {
		$.ajax({
			type: "POST",
			url: "<{$HOME_URL}>update.php<{$root_menu_item.Destination}>&action=item_picture",
			data: $('#upload_form').serialize(),
			error: function(msg) {
				alert('Es ist ein Fehler aufgetreten!');
			},
			success: function(msg) {
				alert(msg);
			}
 		});
 		return false;
 	}
 	
	$(document).ready(function() {
		//upload-funktion von hier: http://malsup.com/jquery/form/
		$('#upload_form').ajaxForm({
			beforeSubmit: function(a,f,o) {
				o.dataType = 'html';
				$('#uploadOutput').css('font-size', '8pt');
				$('#uploadOutput').html('Bild wird hochgeladen...');
			},
			success: function(data) {
				var $out = $('#uploadOutput');
				alert(data);
				window.location = document.URL;
			}
		});
	});
</script>
<strong>Bild &auml;ndern</strong>
<form method="post" id="upload_form" enctype="multipart/form-data" action="<{$HOME_URL}>update.php<{$root_menu_item.Destination}>&action=item_picture">
	<input type="hidden" name="item_id" value="<{$root_menu_item.Id}>" />
	<input type="file" name="item_picture" id="item_picture" size="7" style="width:0px;font-size:x-small;" />
	<input type="submit" value="OK" style="float:right;font-size:x-small;" />
</form>
<div id="uploadOutput"></div>